package com.yishusmt.mobsmt.mapper;

import com.yishusmt.mobsmt.dto.request.DefaultReq;
import com.yishusmt.mobsmt.entity.ReceivingAddressEntity;
import net.bytebuddy.agent.builder.AgentBuilder;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * @author zhangyi
 * @date 2018-08-15 10:28
 */
@Repository
public interface ReceivingAddressInfoMapper {

    /**
     * 查询所有地址
     *
     * @param phone
     * @return
     */
    List<ReceivingAddressEntity> selectAllAddress(String phone);

    /**
     *  清除默认地址
     *
     * @param defaultReq
     * @return
     */
    int setAddressIsDefault(DefaultReq defaultReq);
}